<div xmlns:h="http://java.sun.com/jsf/html"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxd="http://nuxeo.org/nxweb/document"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" class="binariesInfos">


<a4j:outputPanel id="binariesInfos" layout="block">

  <p><h:form id="binariesInfosForm">

    <a4j:poll interval="1000"
      enabled="#{systemInfo.isBinariesGCInProgress()}"
      render="binariesInfos" />

    <h:panelGroup rendered="#{systemInfo.isBinariesGCInProgress()}">
      <div class="processMessage running">
        <h:outputText value="#{messages['adminsubtab.sysinfo.binariesinfo.wait']}" />
      </div>
    </h:panelGroup>

    <h:panelGroup rendered="#{!systemInfo.isBinariesGCInProgress()}">
      <p><a4j:commandButton
        value="#{messages['adminsubtab.sysinfo.binariesinfo.start']}"
        action="#{systemInfo.startBinariesGC()}"
        render="binariesInfos"
        styleClass="button" /></p>
      <p><h:selectBooleanCheckbox
        value="#{systemInfo.binariesGCDelete}">
      </h:selectBooleanCheckbox> <span><h:outputText
        value="#{messages['adminsubtab.sysinfo.binariesinfo.delete']}" /></span></p>
    </h:panelGroup>
  </h:form></p>

  <div><h:panelGroup
    rendered="#{systemInfo.isBinaryManagerStatusAvailable()}">
    <h3><h:outputText
      value="#{messages['adminsubtab.sysinfo.binariesinfo.info']}" /></h3>
    <h:panelGroup rendered="#{!systemInfo.binariesWereDeleted}">
      <div class="tips"><h:outputText
        value="#{messages['adminsubtab.sysinfo.binariesinfo.notdeleted']}" /></div>
    </h:panelGroup>
    <table class="dataTable">
      <tr class="dataRowEven">
        <td class="focusColumn thirtyPercent"><h:outputText
          value="#{messages['adminsubtab.sysinfo.binariesinfo.gcduration']}" /></td>
        <td><h:outputText
          value="#{binaryManagerStatus.GCDuration / 1000}">
          <f:convertNumber type="number" maxFractionDigits="1" />
        </h:outputText></td>
      </tr>
      <tr class="dataRowOdd">
        <td class="focusColumn thirtyPercent"><h:outputText
          value="#{messages['adminsubtab.sysinfo.binariesinfo.numbinaries']}" /></td>
        <td><h:outputText
          value="#{binaryManagerStatus.numBinaries}">
          <f:convertNumber type="number" />
        </h:outputText></td>
      </tr>
      <tr class="dataRowEven">
        <td class="focusColumn thirtyPercent"><h:outputText
          value="#{messages['adminsubtab.sysinfo.binariesinfo.sizebinaries']}" /></td>
        <td><h:outputText
          value="#{binaryManagerStatus.sizeBinaries}">
          <f:convertNumber type="number" />
        </h:outputText></td>
      </tr>
      <tr class="dataRowOdd">
        <td class="focusColumn thirtyPercent"><h:outputText
          value="#{messages['adminsubtab.sysinfo.binariesinfo.numbinariesgc']}" /></td>
        <td><h:outputText
          value="#{binaryManagerStatus.numBinariesGC}">
          <f:convertNumber type="number" />
        </h:outputText></td>
      </tr>
      <tr class="dataRowEven">
        <td class="focusColumn thirtyPercent"><h:outputText
          value="#{messages['adminsubtab.sysinfo.binariesinfo.sizebinariesgc']}" /></td>
        <td><h:outputText
          value="#{binaryManagerStatus.sizeBinariesGC}">
          <f:convertNumber type="number" />
        </h:outputText></td>
      </tr>
    </table>
  </h:panelGroup></div>

</a4j:outputPanel></div>
